home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / rock / RTable$CopyAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.1 KB  |  31 lines

  1. package com.extensibility.rock;
  2.  
  3. import com.extensibility.app.UI;
  4. import java.awt.event.ActionEvent;
  5. import javax.swing.text.DefaultEditorKit;
  6. import javax.swing.text.JTextComponent;
  7. import javax.swing.text.TextAction;
  8.  
  9. public class RTable$CopyAction extends RAction {
  10.    // $FF: synthetic field
  11.    final RTable this$0;
  12.    TextAction textCopy;
  13.  
  14.    public RTable$CopyAction(RTable var1) {
  15.       super(UI.getString("edit.item.copy"), 67);
  16.       this.this$0 = var1;
  17.       this.textCopy = new DefaultEditorKit.CopyAction();
  18.    }
  19.  
  20.    public void actionOccurred(ActionEvent var1) {
  21.       JTextComponent var2 = this.this$0.getCellEditorAsJTextComponent();
  22.       if (var2 != null) {
  23.          this.textCopy.actionPerformed(var1);
  24.       } else {
  25.          this.this$0.copy();
  26.       }
  27.  
  28.       RTable.access$5000071(this.this$0);
  29.    }
  30. }
  31.